package com.neusoft.feign;

import com.neusoft.po.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(name="credit-server",fallback=FeignClientCallBack.class)
public interface CreditFeignClient {

    @PostMapping("/CreditController/initCredit/{userId}")
    public CommonResult<Integer> initCredit(@PathVariable("userId")String userId);
}
